minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> CONCAT2(u, v)
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> LESS_LEAVES2(concat2(u, v), concat2(w, z))
QUOT2(s1(x), s1(y)) -> QUOT2(minus2(x, y), s1(y))
REVERSE1(add2(n, x)) -> APP2(reverse1(x), add2(n, nil))
REVERSE1(add2(n, x)) -> REVERSE1(x)
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> CONCAT2(w, z)
SHUFFLE1(add2(n, x)) -> SHUFFLE1(reverse1(x))
MINUS2(s1(x), s1(y)) -> MINUS2(x, y)
SHUFFLE1(add2(n, x)) -> REVERSE1(x)
QUOT2(s1(x), s1(y)) -> MINUS2(x, y)
CONCAT2(cons2(u, v), y) -> CONCAT2(v, y)
APP2(add2(n, x), y) -> APP2(x, y)
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> CONCAT2(u, v)
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> LESS_LEAVES2(concat2(u, v), concat2(w, z))
QUOT2(s1(x), s1(y)) -> QUOT2(minus2(x, y), s1(y))
REVERSE1(add2(n, x)) -> APP2(reverse1(x), add2(n, nil))
REVERSE1(add2(n, x)) -> REVERSE1(x)
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> CONCAT2(w, z)
SHUFFLE1(add2(n, x)) -> SHUFFLE1(reverse1(x))
MINUS2(s1(x), s1(y)) -> MINUS2(x, y)
SHUFFLE1(add2(n, x)) -> REVERSE1(x)
QUOT2(s1(x), s1(y)) -> MINUS2(x, y)
CONCAT2(cons2(u, v), y) -> CONCAT2(v, y)
APP2(add2(n, x), y) -> APP2(x, y)
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
CONCAT2(cons2(u, v), y) -> CONCAT2(v, y)
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
CONCAT2(cons2(u, v), y) -> CONCAT2(v, y)
POL(CONCAT2(x1, x2)) = 2·x1
POL(cons2(x1, x2)) = 1 + 2·x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> LESS_LEAVES2(concat2(u, v), concat2(w, z))
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
LESS_LEAVES2(cons2(u, v), cons2(w, z)) -> LESS_LEAVES2(concat2(u, v), concat2(w, z))
POL(LESS_LEAVES2(x1, x2)) = 2·x1
POL(concat2(x1, x2)) = 1 + x1 + x2
POL(cons2(x1, x2)) = 2 + x1 + x2
POL(leaf) = 0
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
concat2(leaf, y) -> y
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
APP2(add2(n, x), y) -> APP2(x, y)
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP2(add2(n, x), y) -> APP2(x, y)
POL(APP2(x1, x2)) = 2·x1
POL(add2(x1, x2)) = 1 + 2·x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
↳ QDP
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
REVERSE1(add2(n, x)) -> REVERSE1(x)
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
REVERSE1(add2(n, x)) -> REVERSE1(x)
POL(REVERSE1(x1)) = 2·x1
POL(add2(x1, x2)) = 1 + 2·x2
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
SHUFFLE1(add2(n, x)) -> SHUFFLE1(reverse1(x))
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SHUFFLE1(add2(n, x)) -> SHUFFLE1(reverse1(x))
POL(SHUFFLE1(x1)) = 2·x1
POL(add2(x1, x2)) = 1 + x1 + x2
POL(app2(x1, x2)) = x1 + x2
POL(nil) = 0
POL(reverse1(x1)) = x1
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
app2(nil, y) -> y
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
MINUS2(s1(x), s1(y)) -> MINUS2(x, y)
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MINUS2(s1(x), s1(y)) -> MINUS2(x, y)
POL(MINUS2(x1, x2)) = 2·x1 + x2
POL(s1(x1)) = 2 + 2·x1
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
QUOT2(s1(x), s1(y)) -> QUOT2(minus2(x, y), s1(y))
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
QUOT2(s1(x), s1(y)) -> QUOT2(minus2(x, y), s1(y))
POL(0) = 0
POL(QUOT2(x1, x2)) = 2·x1
POL(minus2(x1, x2)) = 2·x1
POL(s1(x1)) = 2 + 2·x1
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
minus2(x, 0) -> x
minus2(s1(x), s1(y)) -> minus2(x, y)
quot2(0, s1(y)) -> 0
quot2(s1(x), s1(y)) -> s1(quot2(minus2(x, y), s1(y)))
app2(nil, y) -> y
app2(add2(n, x), y) -> add2(n, app2(x, y))
reverse1(nil) -> nil
reverse1(add2(n, x)) -> app2(reverse1(x), add2(n, nil))
shuffle1(nil) -> nil
shuffle1(add2(n, x)) -> add2(n, shuffle1(reverse1(x)))
concat2(leaf, y) -> y
concat2(cons2(u, v), y) -> cons2(u, concat2(v, y))
less_leaves2(x, leaf) -> false
less_leaves2(leaf, cons2(w, z)) -> true
less_leaves2(cons2(u, v), cons2(w, z)) -> less_leaves2(concat2(u, v), concat2(w, z))